package edu.gznu.ics.fast.pulsar.service.userService;


import edu.gznu.ics.fast.pulsar.model.po.user.userRolePO;

import java.util.List;
import java.util.Set;

/**
 * <p>User: Zhang Kaitao
 * <p>Date: 14-1-28
 * <p>Version: 1.0
 */
public interface RoleService {
     userRolePO createRole(userRolePO role);
     userRolePO updateRole(userRolePO role);
     void deleteRole(Long roleId);
     userRolePO  findRoleInfoByRoleId (Long roleId);
     List<userRolePO> findAllRoles();

    /**
     * 根据角色编号得到角色标识符列表
     * @param roleIds
     * @return
     */
    Set<String> findRoles(Long[] roleIds);

    /**
     * 根据角色编号得到权限字符串列表
     * @param roleIds
     * @return
     */
    Set<String> findPermissions(Long[] roleIds);
}
